@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <form class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="placeName" value="${item.placeName}">
            <input type="hidden" id="deptName" value="${item.deptName}">
            <input type="hidden" id="teamName" value="${item.teamName}">

            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="empCode" name="员工编码" value="${item.empCode}" underline="true"/>
                    <#input id="empName" name="员工姓名" value="${item.empName}" underline="true" />

                    <#select id="place" name="处/室" value="${item.place}" underline="true">
                        @ for(place in places!){
                        <option value="${place.fullname}" code="${place.id}">${place.fullname}</option>
                        @}
                    </#select>



                    <#select id="postType" name="岗位类别" value="${item.postType}" underline="true">
                        @ for(g in groups!){
                        <option value="${g.num}">${g.name}</option>
                        @}
                    </#select>

                    <#select id="laborType" name="用工类型" value="${item.laborType}" underline="true">
                        @ for(labor in laborTypes!){
                        <option value="${labor.name}">${labor.name}</option>
                        @}
                    </#select>
                </div>

                <div class="col-sm-6">
                    <#input id="erpCode" name="二级ERP编号" value="${item.erpCode}" underline="true"/>
                    <#select id="department" name="部门（单位）"  value="${item.department}" underline="true">
                        <option>--请选择--</option>
                        @ for(dep in depts!){
                        <option value="${dep.fullname}" code="${dep.id}">${dep.fullname}</option>
                        @}
                    </#select>
                    <#select id="team" name="班组" value="${item.team}" underline="true">
                        @ for(team in teams!){
                        <option value="${team.fullname}" code="${team.id}">${team.fullname}</option>
                        @}
                    </#select>



                    <#input id="post" name="职务（岗位）" value="${item.post}" underline="true" />
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-12 text-center">
                    <button type="submit" class="btn btn-info" onclick="EmployeeInfoDlg.editSubmit()" id="ensure">
                        <i class="fa fa-check"></i>&nbsp;提交
                    </button>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="EmployeeInfoDlg.close()"/>
                </div>
            </div>
        </form>

    </div>
</div>
<script src="${ctxPath}/static/modular/train/employee/employee_info.js?v=${version}"></script>
@}
